home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10367 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.8 KB  |  51 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc,comp.lang.c
  2. Path: news.sprintlink.net!news1!ts02-and-07
  3. From: dlmiller@iquest.net (Doug & Rose Miller)
  4. Subject: Re: Help needed using C's conio.h functions.
  5. X-Nntp-Posting-Host: ts02-and-07.iquest.net
  6. Message-ID: <DoE2tH.FsB@iquest.net>
  7. Sender: news@iquest.net (News Admin)
  8. Organization: IQuest Network Services
  9. X-Newsreader: News Xpress Version 1.0 Beta #2.1
  10. References: <4i7sun$49j@darkstar.UCSC.EDU>
  11. Date: Sun, 17 Mar 1996 01:53:15 GMT
  12.  
  13. nwaussie@cats.ucsc.edu (Nicholas Cory Williams) wrote:
  14. +I am trying to program a game that was origianlly going to be for DOS until
  15. +I realised that my Turbo C/C++ compiler for Windows only compiled for windows.
  16. +Now, I have to find a way of using basic text windows or something to output
  17. +my text card game.
  18. +I thought I had found the perfect solution when I found functions like
  19. +cprintf and window and clrscr, etc. in the conio.h library however, they
  20. +won't work.
  21. +
  22. +#include<conio.h>
  23. +
  24. +int main(void)
  25. +{
  26. +    clrscr();
  27. +    window(10, 10, 20, 20);
  28. +    cprintf("Hello world\r\n");
  29. +    getch();
  30. +    return 0;
  31. +}
  32. +
  33. +This program gives me these warnings and errors:
  34. +Warning WINDOW.C 6: Call to function 'window' with no prototype in function
  35. +main
  36. +Warning WINDOW.C 7: Call to function 'cprintf' with no prototype in function
  37. +main
  38. +Linker Error: Undefined symbol _cprintf in module WINDOW.C
  39. +Linker Error: Undefined symbol _window in module WINDOW.C
  40. +
  41. +I think I have all my directories set up right, (all my other functions
  42. +work fine with calls to other libraries).
  43. +
  44. +Might this have something to do with me running all this under Win95? Is there
  45. +something else I need to do to get these to work? I tried putting in
  46. +prototypes for these functions but that only got rid of the warnings.
  47. +
  48. +Please help me....
  49. +
  50. Compiles clean for me.  Check your compiler switches.
  51.